import request from '@/request'

export function selectTag(formdata) {
    return request({
      url: '/tag/select',
      method: 'post',
      data: formdata
    })
  }

  export function addTag(formdata) {
    return request({
      url: '/tag/insert',
      method: 'post',
      data: formdata
    })
  }

  export function updateTag(formdata) {
    return request({
      url: '/tag/update',
      method: 'post',
      data: formdata
    })
  }

  export function deleteTag(id) {
    return request({
      url: `/tag/delete/${id}`,
      method: 'post',
    })
  }